import { post, ws } from './axiosConfig.js'
import { uploadPost } from './uplodAxios'

// 进入大会场
// export function enterBig(data){
// 	 return post('/chat/creatMainMeeting', data)
// }

// 进入大会场
export function enterBig(data) {
  return post('/chat/creatMainMeeting2', data)
}

// 创建ws连接
export function createWS(data) {
  return ws(`/connectWebSocket`, data)
}

// 获取历史记录
export function queryChat(data) {
  return post('/chat/queryChatToUser', data)
}

// 上传图片
export function netUploadFile(formdata) {
  return uploadPost('/chat/upload/img', formdata)
}

// 用户评价
export function comment(data = {}) {
  return post('/contentmentbase/save', data)
}

// 获取用户信息
export function getUserInfo(data = {}) {
  return post('/meetinguser/getUserName', data)
}

// 获取导航栏
export function queryTool(data = {}) {
  return post('/toollibrary/listQuery', data)
}
